package com.zj.utils;

import java.sql.*;

public class DBUtils {
    public static Connection getConnection() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/manage?useUnicode=true&characterEncoding=utf8&useSSL=true";
        String username = "root";
        String password = "1234";
        return DriverManager.getConnection(url,username,password);
    }
}
